package com.hj.deliveryorder.service;

import com.hj.common.core.domain.entity.SysUser;
import com.hj.deliveryorder.domain.DeliveryOrders;

import java.util.List;

/**
 * 配送手机卡号的订单Service接口
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
public interface IDeliveryOrdersService 
{
    /**
     * 查询配送手机卡号的订单
     * 
     * @param id 配送手机卡号的订单主键
     * @return 配送手机卡号的订单
     */
    public DeliveryOrders selectDeliveryOrdersById(Long id);

    /**
     * 查询配送手机卡号的订单列表
     * 
     * @param deliveryOrders 配送手机卡号的订单
     * @return 配送手机卡号的订单集合
     */
    public List<DeliveryOrders> selectDeliveryOrdersList(DeliveryOrders deliveryOrders);

    /**
     * 新增配送手机卡号的订单
     * 
     * @param deliveryOrders 配送手机卡号的订单
     * @return 结果
     */
    public int insertDeliveryOrders(DeliveryOrders deliveryOrders);

    /**
     * 修改配送手机卡号的订单
     * 
     * @param deliveryOrders 配送手机卡号的订单
     * @return 结果
     */
    public int updateDeliveryOrders(DeliveryOrders deliveryOrders);

    /**
     * 批量删除配送手机卡号的订单
     * 
     * @param ids 需要删除的配送手机卡号的订单主键集合
     * @return 结果
     */
    public int deleteDeliveryOrdersByIds(Long[] ids);

    /**
     * 删除配送手机卡号的订单信息
     * 
     * @param id 配送手机卡号的订单主键
     * @return 结果
     */
    public int deleteDeliveryOrdersById(Long id);

    String importOrder(List<DeliveryOrders> orderList, boolean updateSupport, String operName);

    /**
     * 分配订单
     * @param deliveryOrders
     * @return
     */
    int assignOrders(DeliveryOrders deliveryOrders, SysUser user);

    /**
     * 订单数
     * @param deliveryOrders
     * @return
     */
    Integer orderCount(DeliveryOrders deliveryOrders);
}
